<h2>参加者管理 (<?php echo MailingLists::model()->findByPk($_GET['mlId'])->name; ?>)</h2>

<div class="actionBar">
   [<?php echo CHtml::link('新規参加者',array('create','mlId'=>$_GET['mlId'])); ?>]
</div>

<table class="dataGrid">
  <thead>
  <tr>
    <th><?php echo $sort->link('name'); ?></th>
    <th><?php echo $sort->link('affiliate'); ?></th>
    <th><?php echo $sort->link('email'); ?></th>
    <th><?php echo $sort->link('create_time'); ?></th>
    <th><?php echo $sort->link('update_time'); ?></th>
	<th>Actions</th>
  </tr>
  </thead>
  <tbody>
<?php foreach($models as $n=>$model): ?>
  <tr class="<?php echo $n%2?'even':'odd';?>">
    <td><?php echo CHtml::encode($model->name); ?></td>
    <td><?php echo CHtml::encode($model->affiliate); ?></td>
    <td><?php echo CHtml::encode($model->email); ?></td>
    <td><?php echo CHtml::encode($model->create_time); ?></td>
    <td><?php echo CHtml::encode($model->update_time); ?></td>
    <td>
    <?php echo CHtml::link('修正',array('update','id'=>$model->id, 'mlId'=>$_GET['mlId'])); ?>
      <?php echo CHtml::linkButton('削除',array(
      	  'submit'=>'',
      	  'params'=>array('command'=>'delete','id'=>$model->id),
      	  'confirm'=>"参加者{$model->name}を削除しても良いですか?")); ?>
	</td>
  </tr>
<?php endforeach; ?>
  </tbody>
</table>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>